
/*******************************************************************************
 * Copyright (c) 2007 Jules White. All rights reserved.
 * This program and the accompanying materials are made available under the
 * terms of the Common Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors: Jules White - initial API and implementation
 ******************************************************************************/
package org.refresh.prolog;

import java.io.File;
import java.util.List;

public class QueryImpl implements Query {
	private String queryString_;
	private SolutionHandler solutionHandler_;
	private List<File> requiredLibraries_;
	
	public QueryImpl(String queryString, SolutionHandler solutionHandler, List<File> requiredLibraries) {
		super();
		queryString_ = queryString;
		solutionHandler_ = solutionHandler;
		requiredLibraries_ = requiredLibraries;
	}
	
	public String getQueryString() {
		return queryString_;
	}

	public void setQueryString(String queryString) {
		queryString_ = queryString;
	}

	public List<File> getRequiredLibraries() {
		return requiredLibraries_;
	}

	public void setRequiredLibraries(List<File> requiredLibraries) {
		requiredLibraries_ = requiredLibraries;
	}

	public SolutionHandler getSolutionHandler() {
		return solutionHandler_;
	}

	public void setSolutionHandler(SolutionHandler solutionHandler) {
		solutionHandler_ = solutionHandler;
	}

	public String prepare(Context ctx) {
		return queryString_;
	}



}
